import { ToastService } from '@manycore/pages-vm-api';
import { ApiImpl } from 'message-lite';

@ApiImpl()
export class ToastServiceImpl extends ToastService {
  async info(message: string) {
    IDP.UI.toast.info(message);
  }

  async warn(message: string) {
    IDP.UI.toast.warn(message);
  }

  async error(message: string) {
    IDP.UI.toast.error(message);
  }
}
